{% extends "base.html" %}

{% block head %}
    {{ super() }}
    <script type=text/javascript src="{{ url_for('static', filename='js/jquery-1.6.2.min.js') }}"></script>
    <script type=text/javascript src="{{ url_for('static', filename='js/checkDatas.js') }}"></script>
    <script type=text/javascript src="{{ url_for('static', filename='js/jquery.bgiframe.min.js') }}"></script>
    <script type=text/javascript src="{{ url_for('static', filename='js/loading-min.js') }}"></script>
    <link type=text/css rel="stylesheet" href="{{ url_for('static', filename='css/loading.css') }}" />
    <script type=text/javascript>
         $(document).ready(function () {});
         var Loading;
         function show(i) {
             Loading = new ol.Loading({ id: "div_" + i });
             Loading.show();
         }
         function hide() {
             Loading.hide();
         }
    </script>
{% endblock %}

{% block page_content %}
    {{ super() }}
    <div class="page-header">
        <h3>批量销账 - 数据检查</h3>
        <p>The local date and time is <span style="color: red; ">{{ moment(current_time).format('YYYY-MM-DD HH:mm:ss') }}</span>.</p>
        <p>That was {{ moment(current_time).fromNow(refresh=True) }}.</p>
    </div>

    <div class="page-header">
        <p><span class="glyphicon glyphicon-align-justify"></span> 0点前，下月账本是否为空
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('check_balance_before_0',0)" title="期望结果：空">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_0"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 0点后，批扣前，下月账本是否有零点之前的数据
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('check_balance_after_0',1)" title="期望结果：空">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_1"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 0点后，批扣前，上、下月账本零点之后的数据是否一致
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('check_two_balance',2)" title="期望结果：空">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_2"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 当前账期
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('check_cycle',3)">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            [期望结果：{{ yyyymmdd }},20,20,20,20]
            <div id="div_3"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 待入库表是否为空
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('check_indb_table',0)" title="期望结果：空">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_10"></div>
            <div id="div_11"></div>
            <div id="div_12"></div>
            <div id="div_13"></div>
        </p>
    </div>
{% endblock %}
